package com.hl.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;
import com.hl.mapper.RechargeRecordsMapper;
import com.hl.domain.RechargeRecords;
import com.hl.service.IRechargeRecordsService;

/**
 * 充值记录Service业务层处理
 * 
 * @author vv
 * @date 2025-08-05
 */
@Service
@Primary
public class RechargeRecordsServiceImpl implements IRechargeRecordsService 
{
    @Autowired
    private RechargeRecordsMapper rechargeRecordsMapper;

    /**
     * 查询充值记录
     * 
     * @param id 充值记录主键
     * @return 充值记录
     */
    @Override
    public RechargeRecords selectRechargeRecordsById(String id)
    {
        return rechargeRecordsMapper.selectRechargeRecordsById(id);
    }

    /**
     * 查询充值记录列表
     * 
     * @param rechargeRecords 充值记录
     * @return 充值记录
     */
    @Override
    public List<RechargeRecords> selectRechargeRecordsList(RechargeRecords rechargeRecords)
    {
        return rechargeRecordsMapper.selectRechargeRecordsList(rechargeRecords);
    }

    /**
     * 新增充值记录
     * 
     * @param rechargeRecords 充值记录
     * @return 结果
     */
    @Override
    public int insertRechargeRecords(RechargeRecords rechargeRecords)
    {
        return rechargeRecordsMapper.insertRechargeRecords(rechargeRecords);
    }

    /**
     * 修改充值记录
     * 
     * @param rechargeRecords 充值记录
     * @return 结果
     */
    @Override
    public int updateRechargeRecords(RechargeRecords rechargeRecords)
    {
        return rechargeRecordsMapper.updateRechargeRecords(rechargeRecords);
    }

    /**
     * 批量删除充值记录
     * 
     * @param ids 需要删除的充值记录主键
     * @return 结果
     */
    @Override
    public int deleteRechargeRecordsByIds(String[] ids)
    {
        return rechargeRecordsMapper.deleteRechargeRecordsByIds(ids);
    }

    /**
     * 删除充值记录信息
     * 
     * @param id 充值记录主键
     * @return 结果
     */
    @Override
    public int deleteRechargeRecordsById(String id)
    {
        return rechargeRecordsMapper.deleteRechargeRecordsById(id);
    }
}
